.class public Lcom/waiqin365/compons/c/d;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/waiqin365/compons/view/c;


# direct methods
.method public static a()Z
    .locals 2

    sget-object v0, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    const-string/jumbo v1, "Xiaomi"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public static a(Landroid/content/Context;)Z
    .locals 3

    const/4 v0, 0x0

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x16

    if-le v1, v2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    const-string/jumbo v2, "mock_location"

    invoke-static {v1, v2}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, "0"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method

.method static synthetic b()Lcom/waiqin365/compons/view/c;
    .locals 1

    sget-object v0, Lcom/waiqin365/compons/c/d;->a:Lcom/waiqin365/compons/view/c;

    return-object v0
.end method

.method public static b(Landroid/content/Context;)Z
    .locals 5

    const/4 v0, 0x1

    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    new-instance v2, Landroid/content/ComponentName;

    sget-object v3, Lcom/fiberhome/gaea/client/c/a;->a:Ljava/lang/String;

    const-string/jumbo v4, "com.fiberhome.xloc.broadcast.LocTaskReceiver"

    invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/content/pm/PackageManager;->getComponentEnabledSetting(Landroid/content/ComponentName;)I

    move-result v3

    const/4 v4, 0x2

    if-ne v3, v4, :cond_0

    const-string/jumbo v3, "\u63d0\u793a:\u7a0b\u5e8f\u88ab\u7981\u6b62\u81ea\u542f\u52a8"

    invoke-static {v3}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-virtual {v1, v2, v0, v0}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V

    const/4 v0, 0x0

    :cond_0
    return v0
.end method

.method public static c(Landroid/content/Context;)Z
    .locals 2

    const-string/jumbo v0, "location"

    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/location/LocationManager;

    const-string/jumbo v1, "gps"

    invoke-virtual {v0, v1}, Landroid/location/LocationManager;->isProviderEnabled(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static d(Landroid/content/Context;)V
    .locals 6

    invoke-static {p0}, Lcom/waiqin365/compons/c/d;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    new-instance v0, Lcom/waiqin365/compons/view/c;

    const v1, 0x7f0806b1

    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "\u60a8\u5f00\u542f\u4e86\"\u5141\u8bb8\u6a21\u62df\u4f4d\u7f6e\"\u9009\u9879,\u4e3a\u786e\u4fdd\u83b7\u53d6\u771f\u5b9e\u4f4d\u7f6e,\u8bf7\u5230\"\u5f00\u53d1\u8005\u9009\u9879\"\u8bbe\u7f6e\u4e2d,\u5173\u95ed\"\u5141\u8bb8\u6a21\u62df\u4f4d\u7f6e\"\u9009\u9879!"

    sget v4, Lcom/waiqin365/compons/view/c;->c:I

    new-instance v5, Lcom/waiqin365/compons/c/e;

    invoke-direct {v5, p0}, Lcom/waiqin365/compons/c/e;-><init>(Landroid/content/Context;)V

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    sput-object v0, Lcom/waiqin365/compons/c/d;->a:Lcom/waiqin365/compons/view/c;

    sget-object v0, Lcom/waiqin365/compons/c/d;->a:Lcom/waiqin365/compons/view/c;

    const-string/jumbo v1, "\u8bbe\u7f6e"

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/view/c;->c(Ljava/lang/String;)V

    sget-object v0, Lcom/waiqin365/compons/c/d;->a:Lcom/waiqin365/compons/view/c;

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto :goto_0
.end method
